package cn.com.cpic.insurance.rulecheck.core.rule;

import cn.com.cpic.insurance.rulecheck.core.AbstractTagedTokenable;

/**
 * 
 * 
 * @author 代波
 * @since 2011-8-21
 */
public abstract class AbstractRuleConsumer<T> extends AbstractTagedTokenable<String> implements RuleConsumer<T> {
	private static final long serialVersionUID = 5407581251021613384L;

	private String errorMessage;

	protected AbstractRuleConsumer(String token, String... tags) {
		super(token, tags);
	}

	public boolean isOperateFail() {
		return false;
	}

	public final String getErrorMessage() {
		return errorMessage;
	}

	public final void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
